package com.xjc.controller.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Map;

/**
 * <p>
 * 启动流程请求参数
 * </p>
 *
 * @author xiaojincai
 * @since 2025-06-12
 */
@Data
@Schema(description = "启动流程请求参数")
public class StartProcessRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 流程定义key
     */
    @NotBlank(message = "流程定义key不能为空")
    @Schema(description = "流程定义key")
    private String processDefKey;

    /**
     * 业务单key
     */
    @NotBlank(message = "业务单key不能为空")
    @Schema(description = "业务单key")
    private String businessKey;

    /**
     * 流程变量
     */
    @Schema(description = "流程变量")
    private Map<String, Object> variables;
}
